package com.itcast.dao;

import com.github.pagehelper.Page;
import com.itcast.pojo.Member;

import java.util.List;

/**
 * @author 冯志立
 * @create 2019-12-31 17:04
 */
public interface MemberDao {
    List<Member> findAll();

    Page<Member> selectByCondition(String queryString);

    void add(Member member);

    void deleteById(Integer id);

    Member findById(Integer id);

    Member findByTelephone(String telephone);

    void edit(Member member);

    Integer findMemberCountBeforeDate(String date);

    Integer findMemberCountByDate(String date);

    Integer findMemberCountAfterDate(String date);

    Integer findMemberTotalCount();

}
